package STUDENT.HOANGQUOCVIET.OOPs.QuanLyNhanSu.Controllers;

import STUDENT.HOANGQUOCVIET.OOPs.QuanLyNhanSu.Models.Model;
import STUDENT.HOANGQUOCVIET.OOPs.QuanLyNhanSu.Views.jFThemNV;

public class Controller {
	Model objModel = new Model();
	int MaNV;
	String hoTen, diaChi, SDT;
	
	public Model getObjModel() {
		return objModel;
	}
	public void setObjModel(Model objModel) {
		this.objModel = objModel;
	}
	public int getMaNV() {
		return MaNV;
	}
	public void setMaNV(int maNV) {
		MaNV = maNV;
	}
	public String getHoTen() {
		return hoTen;
	}
	public void setHoTen(String hoTen) {
		this.hoTen = hoTen;
	}
	public String getDiaChi() {
		return diaChi;
	}
	public void setDiaChi(String diaChi) {
		this.diaChi = diaChi;
	}
	public String getSDT() {
		return SDT;
	}
	public void setSDT(String sDT) {
		SDT = sDT;
	}
	public double getBacLuong() {
		return bacLuong;
	}
	public void setBacLuong(double bacLuong) {
		this.bacLuong = bacLuong;
	}
	double bacLuong;
	public void Run(int intChoise){
		switch (intChoise) {
		case 1:						
			objModel.ThemNV(MaNV, hoTen, diaChi, SDT, bacLuong);
			System.out.println("Đã thêm");
		default:
			break;
		}
	}

}
